-- GENERATED SPELL FOR [Scourge Guard] --


function spell0_8527(pUnit, Event) --@Disarm,n/a--
pUnit:FullCastSpellOnTarget(6713,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_8527', 5318, 1)
end

function spell1_8527(pUnit, Event) --@Shield Slam,n/a--
pUnit:FullCastSpellOnTarget(8242,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_8527', 2291, 1)
end

function Sorts_8527(pUnit, Event)
local choix_sorts_8527 = math.random(0, 1)
if choix_sorts_8527 == 0 then
pUnit:RegisterEvent('spell0_8527', 1, 1)
end
if choix_sorts_8527 == 1 then
pUnit:RegisterEvent('spell1_8527', 1, 1)
end
end

function mob8527_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_8527', math.random(1500, 3000), 1)
end

function mob8527_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob8527_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob8527_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(8527, 1, 'mob8527_Action')
RegisterUnitEvent(8527, 2, 'mob8527_Leave')
RegisterUnitEvent(8527, 3, 'mob8527_Kill')
RegisterUnitEvent(8527, 4, 'mob8527_Die')
